package com.laotou99.bookManage.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class BorrowBookHeader {
    private Integer id;

    private String borno;

    private Date createtime;

    private Date bortime;

    private String custname;

    private Date returndate;

    private Integer isreturn;

    private String remark1;

    private String remark2;
    
    private String hremark1;

    private String hremark2;

    private List<BorrowBookDetail> borrowBookDetail;
    //private BorrowBookDetail borrowBookDetail;    
    
    public BorrowBookHeader(){}    
    public BorrowBookHeader(String borno, Date createtime, Date bortime, 
    		String custname, Date returndate,
			Integer isreturn, String hremark1, String hremark2,
			String remark1, String remark2) 
    { 
		this.borno = borno;
		this.createtime = createtime;
		this.bortime = bortime;
		this.custname = custname;
		this.returndate = returndate;
		this.isreturn = isreturn;
		this.remark1 = remark1;
		this.remark2 = remark2;
		this.hremark1 = hremark1;
		this.hremark2 = hremark2;
	}

	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getBorno() {
        return borno;
    }

    public void setBorno(String borno) {
        this.borno = borno == null ? null : borno.trim();
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getBortime() {
        return bortime;
    }

    public void setBortime(Date bortime) {
        this.bortime = bortime;
    }

    public String getCustname() {
        return custname;
    }

    public void setCustname(String custname) {
        this.custname = custname == null ? null : custname.trim();
    }

    public Date getReturndate() {
        return returndate;
    }

    public void setReturndate(Date returndate) {
        this.returndate = returndate;
    }

    public Integer getIsreturn() {
        return isreturn;
    }

    public void setIsreturn(Integer isreturn) {
        this.isreturn = isreturn;
    }

    public String getRemark1() {
        return remark1;
    }

    public void setRemark1(String remark1) {
        this.remark1 = remark1 == null ? null : remark1.trim();
    }

    public String getRemark2() {
        return remark2;
    }

    public void setRemark2(String remark2) {
        this.remark2 = remark2 == null ? null : remark2.trim();
    }
    
	public List<BorrowBookDetail> getBorrowBookDetail() 
	{
		//System.out.println("borrowBookDetail->");
		//System.out.println(borrowBookDetail==null);
//		if(borrowBookDetail.equals(null)){
//			List<BorrowBookDetail> borrowBookDetail1 = 
//					new ArrayList<BorrowBookDetail>();
//			return borrowBookDetail1;
//		}
		return borrowBookDetail;
	}
	
	public void setBorrowBookDetail(List<BorrowBookDetail> borrowBookDetail) {
		this.borrowBookDetail = borrowBookDetail;
	}
    
	public boolean checkDetail(){
		System.out.println(borrowBookDetail.equals(null));
		
		return false;
	}
//	public BorrowBookDetail getBorrowBookDetail() {
//		return borrowBookDetail;
//	}
//	public void setBorrowBookDetail(BorrowBookDetail borrowBookDetail) {
//		this.borrowBookDetail = borrowBookDetail;
//	}
	
	public String getHremark1() {
		return hremark1;
	}
	public void setHremark1(String hremark1) {
		this.hremark1 = hremark1;
	}
	public String getHremark2() {
		return hremark2;
	}
	public void setHremark2(String hremark2) {
		this.hremark2 = hremark2;
	}
}